<?php 
$USERS["root"] = "7c6a180b36896a0a8c02787eeafb0e4c"; 

function check_logged(){ 
     global $_SESSION, $USERS; 
     if (!array_key_exists($_SESSION["logged"],$USERS)) { 
          header("Location: login.php"); 
     }; 
}; 
?>
